<template>
	<div id="contentBox">
		
		<div id="tableBox" style="margin:25px 25px 0;" >
			<el-table :data="tableData.data" border  >
			    <el-table-column label="订单号" width="140">
			      <template scope="scope">
			        <span >{{ scope.row.orderNumber }}</span>
			      </template>
			    </el-table-column>
			    <el-table-column label="经销商名称"  :min-width="200" >
			      <template scope="scope">
			        <span >{{ scope.row.dealerName }}</span>
			      </template>
			    </el-table-column>
			    <el-table-column label="汽车车型" :min-width="300" >
			      <template scope="scope">
			        <span >{{ scope.row.carName }}</span>
			      </template>
			    </el-table-column>
			    
			    <!-- <el-table-column label="采购数量" >
			      <template scope="scope">
			        <span >{{ scope.row.amount }}</span>
			      </template>
			    </el-table-column>
			    <el-table-column label="垫资金额" >
			      <template scope="scope">
			        <span >{{ scope.row.paymentAmount | toFixed2}}</span>
			      </template>
			    </el-table-column> 
			    <el-table-column label="放空费" >
			      <template scope="scope">
			        <span >{{ scope.row.basicFee | toFixed2}}</span>
			      </template>
			    </el-table-column>
			    -->
			    <el-table-column label="物流公司" >
			      <template scope="scope">
			        <span >{{ scope.row.logisticsCompanyName }}</span>
			      </template>
			    </el-table-column>
			    <el-table-column label="订单状态" >
			      <template scope="scope">
			        <span >{{ carOrderStatusMap[scope.row.status] }}</span>
			      </template>
			    </el-table-column>
			    <el-table-column label="申请日期" width="180">
			      <template scope="scope">
			        <span >{{ scope.row.addTime }}</span>
			      </template>
			    </el-table-column>
			    <el-table-column label="操作" width="100">
			      <template scope="scope">
			      	<el-button size="small" @click="handleEdit(scope.$index, scope.row)">添加</el-button>
			      </template>
			    </el-table-column>
			</el-table>
            <el-dialog  title="添加验车信息" v-if="dialogSendData.dialogFormVisible" :visible.sync="dialogSendData.dialogFormVisible"  :lock-scroll='false' top=5% :close-on-click-modal="false">
				<dialogForm :dialogSendData="dialogSendData" :tableData="tableData" v-on:refreshTableData="seachData()"></dialogForm>
				
			</el-dialog>
	    </div>
	    <div class="block" style="text-align: center;margin-top: 15px;">
		    <pagination v-on:refreshSeachData="seachData"  :tableData="tableData" :searchForm="searchForm"></pagination>
		</div>
	</div>
</template>
<script src="./index.js">

</script>
<style scoped lang="stylus" rel="styleheet/stylus">
	@import './index.styl';
</style>